function sendMsg(msg) {
  window.external.SendRequest(msg, function(response) {
    element = document.getElementById('echo');
    element.innerHTML = response;
  });
};


function goToPage2() {
  document.location.href = 'page2.html';
};


function goToHome() {
  document.location.href = 'popup.htm';
};
